<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class Acicrud | tis</title>

	<script type="text/javascript" src="resources/combined.js?1735077957"></script>
	<script type="text/javascript" src="elementlist.js?2977522689"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li class="active"><a href="package-CodeIgniter.html">CodeIgniter<span></span></a>
						<ul>
				<li><a href="package-CodeIgniter.Controllers.html">Controllers</a>
						</li>
				<li><a href="package-CodeIgniter.Drivers.html">Drivers</a>
						</li>
				<li><a href="package-CodeIgniter.Libraries.html">Libraries</a>
						</li>
				<li class="active"><a href="package-CodeIgniter.Models.html">Models</a>
						</li>
							</ul></li>
				<li><a href="package-None.html">None</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Acicrud.html">Acicrud</a></li>
				<li><a href="class-ActionTypeModel.html">ActionTypeModel</a></li>
				<li><a href="class-AdminsModel.html">AdminsModel</a></li>
				<li><a href="class-ClassroomSubjectModel.html">ClassroomSubjectModel</a></li>
				<li><a href="class-FilesClassroomSubjectModel.html">FilesClassroomSubjectModel</a></li>
				<li><a href="class-FilesLanguageModel.html">FilesLanguageModel</a></li>
				<li><a href="class-FilesModel.html">FilesModel</a></li>
				<li><a href="class-FilesProgramOsModel.html">FilesProgramOsModel</a></li>
				<li><a href="class-FilesStudyLevelModel.html">FilesStudyLevelModel</a></li>
				<li><a href="class-FilesWorkTypeModel.html">FilesWorkTypeModel</a></li>
				<li><a href="class-LanguageModel.html">LanguageModel</a></li>
				<li><a href="class-LogsModel.html">LogsModel</a></li>
				<li><a href="class-PasswordModel.html">PasswordModel</a></li>
				<li><a href="class-ProgramOsModel.html">ProgramOsModel</a></li>
				<li><a href="class-Rating_restrictsModel.html">Rating_restrictsModel</a></li>
				<li><a href="class-RatingModel.html">RatingModel</a></li>
				<li><a href="class-StudyLevelModel.html">StudyLevelModel</a></li>
				<li><a href="class-WorkTypeModel.html">WorkTypeModel</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-CodeIgniter.Models.html" title="Summary of CodeIgniter\Models"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Acicrud</h1>



	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-CI_Model.html"><span>CI_Model</span></a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>Acicrud</span></b>			
			
			
		</dd>
	</dl>


	<div>
		<h4>Direct known subclasses</h4>
			<a href="class-ActionTypeModel.html">ActionTypeModel</a>, 
			<a href="class-AdminsModel.html">AdminsModel</a>, 
			<a href="class-LogsModel.html">LogsModel</a>, 
			<a href="class-PasswordModel.html">PasswordModel</a>, 
			<a href="class-ProgramOsModel.html">ProgramOsModel</a>, 
			<a href="class-Rating_restrictsModel.html">Rating_restrictsModel</a>, 
			<a href="class-RatingModel.html">RatingModel</a>, 
			<a href="class-StudyLevelModel.html">StudyLevelModel</a>, 
			<a href="class-WorkTypeModel.html">WorkTypeModel</a>, 
			<a href="class-ClassroomSubjectModel.html">ClassroomSubjectModel</a>, 
			<a href="class-FilesClassroomSubjectModel.html">FilesClassroomSubjectModel</a>, 
			<a href="class-FilesLanguageModel.html">FilesLanguageModel</a>, 
			<a href="class-FilesModel.html">FilesModel</a>, 
			<a href="class-FilesProgramOsModel.html">FilesProgramOsModel</a>, 
			<a href="class-FilesStudyLevelModel.html">FilesStudyLevelModel</a>, 
			<a href="class-FilesWorkTypeModel.html">FilesWorkTypeModel</a>, 
			<a href="class-LanguageModel.html">LanguageModel</a>
	</div>






	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-CodeIgniter.html">CodeIgniter</a>\<a href="package-CodeIgniter.Models.html">Models</a><br />

				<b>Copyright:</b>
				ACICRUD by Samuel Sanchez est mis Ã  disposition selon les termes de la
licence Creative Commons PaternitÃ©-Pas dâ€™Utilisation
Commerciale-Partage des Conditions Initiales Ã  lâ€™Identique 2.0 France.
Les autorisations au-delÃ  du champ de cette licence peuvent Ãªtre obtenues
Ã  <a
href="http://www.kromack.com/acicrud/">http://www.kromack.com/acicrud/</a>.<br />
				<b>License:</b>
				<a href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/">http://creativecommons.org/licenses/by-nc-sa/2.0/fr/</a><br />
				<b>Author:</b>
				Samuel Sanchez &lt;<a
href="mailto:samuel.sanchez.work&#64;gmail.com">samuel.sanchez.work&#64;<!---->gmail.com</a>&gt;
- <a href="http://www.kromack.com/acicrud/">http://www.kromack.com/acicrud/</a><br />
				<b>See:</b>
				<a href="http://www.kromack.com/acicrud/">http://www.kromack.com/acicrud/</a>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.<br />
				<b>Tutorial:</b>
				<a href="http://www.kromack.com/acicrud/">http://www.kromack.com/acicrud/</a><br />
		<b>Located at</b> <a href="source-class-Acicrud.html#8-726" title="Go to source code">application/libraries/Acicrud.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			<code><a href="class-Acicrud.html">Acicrud</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Acicrud.html#57-74" title="Go to source code">__construct</a>( <span>string <var>$table</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$database</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>PHP5 constructor.</p>

		</div>

		<div class="description detailed hidden">
			
<p>PHP5 constructor.</p>

<p>Not directly used for legacy compatibility.</p>

<p>$table must be the table name to load. $database could be an instancied
database object or the database group name to load. If none of both is provided,
Acicrud will use the default database.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>$table</dd>
					<dt><var>$database</var></dt>
					<dd><code>mixed</code><br>$database</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-Acicrud.html">Acicrud</a></code></code><br />
				</div>



				<h4>Overrides</h4>
				<div class="list"><code><a href="class-CI_Model.html#___construct">CI_Model::__construct()</a></code></div>

		</div>
		</div></td>
	</tr>
	<tr data-order="Acicrud" id="_Acicrud">

		<td class="attributes"><code>
			 public 
			<code><a href="class-Acicrud.html">Acicrud</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_Acicrud">#</a>
		<code><a href="source-class-Acicrud.html#76-139" title="Go to source code">Acicrud</a>( <span>string <var>$table</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$database</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			
<p>Original PHP4 constructor.</p>

<p>$table must be the table name to load. $database could be an instancied
database object or the database group name to load. If none of both is provided,
Acicrud will use the default database.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>$table</dd>
					<dt><var>$database</var></dt>
					<dd><code>mixed</code><br>$database</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-Acicrud.html">Acicrud</a></code></code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="read" id="_read">

		<td class="attributes"><code>
			 public 
			object
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_read">#</a>
		<code><a href="source-class-Acicrud.html#197-234" title="Go to source code">read</a>( <span>mixed <var>$id</var></span> )</code>

		<div class="description short">
			
<p>Read a database row and return an object</p>

		</div>

		<div class="description detailed hidden">
			
<p>Read a database row and return an object</p>

<p>Two ways exist to read a row : $id could be the numric id of the row or an
associative array that would contain the fields to use for identify the row.</p>

<p>Example : read(1) will read the row identified by the primary key value 1.
read(array('user_id' =&gt; '1', 'country_id' =&gt; '5')) will make the
appropriate WHERE CLAUSES. Be carefull, the query MUST return one unique row
(use getAll() instead to read much than one row).</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd><code>mixed</code><br>$id</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>object</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="set_database" id="_set_database">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_set_database">#</a>
		<code><a href="source-class-Acicrud.html#236-240" title="Go to source code">set_database</a>( <span>mixed <var>$o_db</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="readLast" id="_readLast">

		<td class="attributes"><code>
			 public 
			object
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_readLast">#</a>
		<code><a href="source-class-Acicrud.html#242-257" title="Go to source code">readLast</a>( )</code>

		<div class="description short">
			
<p>Try to read the latest entry in the table.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Try to read the latest entry in the table.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>object</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="checkId" id="_checkId">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_checkId">#</a>
		<code><a href="source-class-Acicrud.html#259-282" title="Go to source code">checkId</a>( <span>unknown_type <var>$id</var></span> )</code>

		<div class="description short">
			
<p>Check if a specific primary key value exist in database</p>

		</div>

		<div class="description detailed hidden">
			
<p>Check if a specific primary key value exist in database</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd><code>unknown_type</code><br>$id</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="create" id="_create">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_create">#</a>
		<code><a href="source-class-Acicrud.html#284-312" title="Go to source code">create</a>( <span>object <var>$o</var></span> )</code>

		<div class="description short">
			
<p>Insert a row in the database</p>

		</div>

		<div class="description detailed hidden">
			
<p>Insert a row in the database</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$o</var></dt>
					<dd><code>object</code><br>$o</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="delete" id="_delete">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_delete">#</a>
		<code><a href="source-class-Acicrud.html#314-342" title="Go to source code">delete</a>( <span>array <var>$where</var></span> )</code>

		<div class="description short">
			
<p>Delete rows.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Delete rows.</p>

<p>Legacy compatibility : $where could be the numeric id of the row to
delete.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$where</var></dt>
					<dd><code>array</code><br>$where An associative array of field =&gt; value to use in the WHERE clause</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="update" id="_update">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_update">#</a>
		<code><a href="source-class-Acicrud.html#344-368" title="Go to source code">update</a>( <span>object <var>$o</var></span> )</code>

		<div class="description short">
			
<p>Update a specific row in the database by copying the local object</p>

		</div>

		<div class="description detailed hidden">
			
<p>Update a specific row in the database by copying the local object</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$o</var></dt>
					<dd><code>object</code><br>$o</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="getter" id="_getter">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getter">#</a>
		<code><a href="source-class-Acicrud.html#371-381" title="Go to source code">getter</a>( <span>string <var>$what</var></span> )</code>

		<div class="description short">
			
<p>Basic getter, return the $what value of the current object.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Basic getter, return the $what value of the current object.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$what</var></dt>
					<dd><code>string</code><br>$what</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get" id="_get">

		<td class="attributes"><code>
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get">#</a>
		<code><a href="source-class-Acicrud.html#383-411" title="Go to source code">get</a>( <span>string <var>$what</var></span>, <span>string <var>$id</var></span> )</code>

		<div class="description short">
			
<p>Get the $what field value identified by the orilary key $id value</p>

		</div>

		<div class="description detailed hidden">
			
<p>Get the $what field value identified by the orilary key $id value</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$what</var></dt>
					<dd><code>string</code><br>$what</dd>
					<dt><var>$id</var></dt>
					<dd><code>string</code><br>$id</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getAll_Akum" id="_getAll_Akum">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAll_Akum">#</a>
		<code><a href="source-class-Acicrud.html#412-430" title="Go to source code">getAll_Akum</a>( <span>integer <var>$id</var></span>, <span>string <var>$fk_table</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			
<p>Made by Zdeno</p>

<p>Zoberie udaje z akumulacnych tabulky, joine tabulku a zoberie tak meno</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd><code>integer</code><br>$id Idcko Programu</dd>
					<dt><var>$fk_table</var></dt>
					<dd><code>string</code><br>$base_table akumulacna tablka</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="deleteAll" id="_deleteAll">

		<td class="attributes"><code>
			 public 
			[type]
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_deleteAll">#</a>
		<code><a href="source-class-Acicrud.html#431-442" title="Go to source code">deleteAll</a>( <span>[type] <var>$id</var></span>, <span>[type] <var>$row</var></span> )</code>

		<div class="description short">
			
<p>Made by zdeno</p>

		</div>

		<div class="description detailed hidden">
			
<p>Made by zdeno</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd><code>[type]</code><br>$id [description]</dd>
					<dt><var>$row</var></dt>
					<dd><code>[type]</code><br>$row [description]</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>[type]</code><br>[description]<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="hasAttribute" id="_hasAttribute">

		<td class="attributes"><code>
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_hasAttribute">#</a>
		<code><a href="source-class-Acicrud.html#443-458" title="Go to source code">hasAttribute</a>( <span>[type] <var>$fk_files_id</var></span>, <span>[type] <var>$col</var></span>, <span>[type] <var>$item</var></span> )</code>

		<div class="description short">
			
<p>made by zdeno</p>

		</div>

		<div class="description detailed hidden">
			
<p>made by zdeno</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$fk_files_id</var></dt>
					<dd><code>[type]</code><br>$fk_files_id [description]</dd>
					<dt><var>$col</var></dt>
					<dd><code>[type]</code><br>$col [description]</dd>
					<dt><var>$item</var></dt>
					<dd><code>[type]</code><br>$item [description]</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br>[description]<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="idExists" id="_idExists">

		<td class="attributes"><code>
			 public 
			[type]
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_idExists">#</a>
		<code><a href="source-class-Acicrud.html#459-472" title="Go to source code">idExists</a>( <span>[type] <var>$id</var></span> )</code>

		<div class="description short">
			
<p>Made by zdeno</p>

		</div>

		<div class="description detailed hidden">
			
<p>Made by zdeno</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd><code>[type]</code><br>$id [description]</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>[type]</code><br>[description]<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="result" id="_result">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_result">#</a>
		<code><a href="source-class-Acicrud.html#477-485" title="Go to source code">result</a>( )</code>

		<div class="description short">
			
<p>Run the Active Record Query an return an array of objects</p>

		</div>

		<div class="description detailed hidden">
			
<p>Run the Active Record Query an return an array of objects</p>




				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="row" id="_row">

		<td class="attributes"><code>
			 public 
			object
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_row">#</a>
		<code><a href="source-class-Acicrud.html#487-495" title="Go to source code">row</a>( )</code>

		<div class="description short">
			
<p>Run the Active Record Query an return one result object</p>

		</div>

		<div class="description detailed hidden">
			
<p>Run the Active Record Query an return one result object</p>




				<h4>Returns</h4>
				<div class="list">
					<code>object</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="__toString" id="___toString">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___toString">#</a>
		<code><a href="source-class-Acicrud.html#497-517" title="Go to source code">__toString</a>( )</code>

		<div class="description short">
			
<p>toString magic method</p>

		</div>

		<div class="description detailed hidden">
			
<p>toString magic method</p>




				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="debug" id="_debug">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_debug">#</a>
		<code><a href="source-class-Acicrud.html#519-538" title="Go to source code">debug</a>( <span>boolean <var>$executeQuery</var> = <span class="php-keyword1">true</span></span>, <span>boolean <var>$die</var> = <span class="php-keyword1">true</span></span> )</code>

		<div class="description short">
			
<p>Stop the script execution in displaying the last query done by the database
class. Breaking of execution script can be prevent by givin false to the second
parameter.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Stop the script execution in displaying the last query done by the database
class. Breaking of execution script can be prevent by givin false to the second
parameter.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$executeQuery</var></dt>
					<dd><code>boolean</code><br>$executeQuery</dd>
					<dt><var>$die</var></dt>
					<dd><code>boolean</code><br>$die</dd>
				</dl></div>



				<h4>Tutorial</h4>
				<div class="list">
						Replace $this-&gt;result() by $this-&gt;debug() in your custom method.<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="_where" id="__where">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__where">#</a>
		<code><a href="source-class-Acicrud.html#540-552" title="Go to source code">_where</a>( <span>array <var>$where</var></span> )</code>

		<div class="description short">
			
<p>Perform WHERE CLAUSE</p>

		</div>

		<div class="description detailed hidden">
			
<p>Perform WHERE CLAUSE</p>

<p>Usage : array(field, value)</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$where</var></dt>
					<dd><code>array</code><br>$where</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="_limit" id="__limit">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__limit">#</a>
		<code><a href="source-class-Acicrud.html#554-569" title="Go to source code">_limit</a>( <span>mixed <var>$limit</var></span> )</code>

		<div class="description short">
			
<p>Perform the LIMIT SQL</p>

		</div>

		<div class="description detailed hidden">
			
<p>Perform the LIMIT SQL</p>

<p>if $limit is array, produces LIMIT $limit[1], 1$limit[0] if $limit is int,
produces LIMIT $limit</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$limit</var></dt>
					<dd><code>mixed</code><br>$limit</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="_order_by" id="__order_by">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__order_by">#</a>
		<code><a href="source-class-Acicrud.html#571-605" title="Go to source code">_order_by</a>( <span>array <var>$order</var></span> )</code>

		<div class="description short">
			
<p>Perform the ORDER BY SQL</p>

		</div>

		<div class="description detailed hidden">
			
<p>Perform the ORDER BY SQL</p>

<p>Produces n times ORDER BY key =&gt; way way MUST be 'DESC' or 'ASC'</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$order</var></dt>
					<dd><code>array</code><br>$order</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="getAll" id="_getAll">

		<td class="attributes"><code>
			 public 
			collection
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAll">#</a>
		<code><a href="source-class-Acicrud.html#609-640" title="Go to source code">getAll</a>( <span>mixed <var>$limit</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$order</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$where</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>Return a collection of $this-&gt;table rows. $limit can be used to LIMIT the
query. $order can be used to ORDER BY results: $order[0] set the field and
$order[1] set the way (ASC or DESC).</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return a collection of $this-&gt;table rows. $limit can be used to LIMIT the
query. $order can be used to ORDER BY results: $order[0] set the field and
$order[1] set the way (ASC or DESC).</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$limit</var></dt>
					<dd><code>mixed</code><br>$limit</dd>
					<dt><var>$order</var></dt>
					<dd><code>array</code><br>$order</dd>
					<dt><var>$where</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>collection</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getBy" id="_getBy">

		<td class="attributes"><code>
			 public 
			collection
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getBy">#</a>
		<code><a href="source-class-Acicrud.html#642-661" title="Go to source code">getBy</a>( <span>string <var>$by</var> = <span class="php-keyword1">null</span></span>, <span>mixed <var>$value</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			
<p>Return row having the $by field to $value $by accepts the "Custom key/value
method" described in the CodeIgniter's active record user guide.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$by</var></dt>
					<dd><code>string</code><br>$by</dd>
					<dt><var>$value</var></dt>
					<dd><code>mixed</code><br>$value</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>collection</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="countAll" id="_countAll">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_countAll">#</a>
		<code><a href="source-class-Acicrud.html#664-678" title="Go to source code">countAll</a>( <span>Array <var>$where</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>Return the number of rows of the table</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return the number of rows of the table</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$where</var></dt>
					<dd><code>Array</code><br>$where</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="lastId" id="_lastId">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_lastId">#</a>
		<code><a href="source-class-Acicrud.html#680-696" title="Go to source code">lastId</a>( )</code>

		<div class="description short">
			
<p>Return the last inserted ID by Acicrud or by the DBMS if the first one
doesn't exist.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return the last inserted ID by Acicrud or by the DBMS if the first one
doesn't exist.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="insertId" id="_insertId">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_insertId">#</a>
		<code><a href="source-class-Acicrud.html#698-704" title="Go to source code">insertId</a>( )</code>

		<div class="description short">
			
<p>This method is an alias of $this-&gt;lastId keeped for legacy
compatibility.</p>

		</div>

		<div class="description detailed hidden">
			
<p>This method is an alias of $this-&gt;lastId keeped for legacy
compatibility.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getMaxId" id="_getMaxId">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getMaxId">#</a>
		<code><a href="source-class-Acicrud.html#706-724" title="Go to source code">getMaxId</a>( )</code>

		<div class="description short">
			
<p>Returns the largest currently used ID in the table or 0 if the table is
empty.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns the largest currently used ID in the table or 0 if the table is
empty.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-CI_Model.html#methods">CI_Model</a></caption>
	<tr>
		<td><code>
			<a href="class-CI_Model.html#___get">__get()</a>
		</code></td>
	</tr>
	</table>











	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="table" id="$table">
		<td class="attributes"><code>
			protected  
			string
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#32" title="Go to source code"><var>$table</var></a>
		</td>
		<td class="value"><code><span class="php-quote">''</span></code></td>
		<td class="description"><div>
			<a href="#$table" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="o_db" id="$o_db">
		<td class="attributes"><code>
			protected  
			mixed
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#38" title="Go to source code"><var>$o_db</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">NULL</span></code></td>
		<td class="description"><div>
			<a href="#$o_db" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="key" id="$key">
		<td class="attributes"><code>
			public  
			string
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#43" title="Go to source code"><var>$key</var></a>
		</td>
		<td class="value"><code><span class="php-quote">''</span></code></td>
		<td class="description"><div>
			<a href="#$key" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="fields" id="$fields">
		<td class="attributes"><code>
			public  
			array
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#46" title="Go to source code"><var>$fields</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>()</code></td>
		<td class="description"><div>
			<a href="#$fields" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="CI" id="$CI">
		<td class="attributes"><code>
			public  
			mixed
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#49" title="Go to source code"><var>$CI</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">NULL</span></code></td>
		<td class="description"><div>
			<a href="#$CI" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="last_id" id="$last_id">
		<td class="attributes"><code>
			public  
			boolean
		</code></td>

		<td class="name">
				<a href="source-class-Acicrud.html#52" title="Go to source code"><var>$last_id</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">FALSE</span></code></td>
		<td class="description"><div>
			<a href="#$last_id" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>






</div>

	<div id="footer">
		tis API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
